package com.yuexiang.melodyhub.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuexiang.melodyhub.common.dto.user.UserFindWithRolesByUsername.response.UserFindWithRolesByUsernameResponse;
import com.yuexiang.melodyhub.user.dto.UserGetBasicInfos.response.UserGetBasicInfosResponse;
import com.yuexiang.melodyhub.user.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao extends BaseMapper<UserEntity> {
    UserFindWithRolesByUsernameResponse findWithRolesByUsername(@Param("username") String username);

    UserGetBasicInfosResponse getBasicInfos(@Param("email") String email);
}
